﻿<%@ Page Title="" EnableTheming="true" Theme="Alpha" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="UserDetail.aspx.cs" Inherits="App.UserDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server">
        <h1 class="detailNick">
            <asp:Label ID="LabelNick" runat="server" Text="" Font-Bold="True"></asp:Label>
            (<asp:Label ID="LabelName" runat="server" Text=""></asp:Label>
            <asp:Label ID="LabelSurname" runat="server" Text=""></asp:Label>)
        </h1>
        <ajaxToolkit:Gravatar ID="ImageAvatar2" runat="server"  DefaultImageBehavior="Identicon" CssClass="detailAvatar"/><!-- jenom pro potreby nastylovani -->
        
        <asp:LinkButton ID="ButtonStatistics" runat="server" Text="Statistiky hráče" onclick="ButtonStatistics_Click" CssClass="detailStats"></asp:LinkButton>
        <div class="detailInfo" style="padding-top: 18px;">
         <asp:Label ID="Label1" runat="server" Text="ICQ: " CssClass="left"></asp:Label>
         <asp:Label ID="LabelICQ" runat="server" Text="" CssClass="right"></asp:Label>
        </div>
        <div class="detailInfo">
         <asp:Label ID="Label2" runat="server" Text="Email: " CssClass="left"></asp:Label>
         <asp:Label ID="LabelEmail" runat="server" Text="" CssClass="right"></asp:Label>
        </div>
        <asp:Repeater ID="RepeaterTeamLeader" runat="server">
            <HeaderTemplate>
                <h2 class="detailHeader">Je vedoucím těchto týmů:</h2>
            </HeaderTemplate>
            <ItemTemplate>
                <div class="detailTeam">
                    <ajaxToolkit:Gravatar ID="ImageAvatar3" runat="server" DefaultImageBehavior="Identicon" Email="<%#GetTeamID(Container.DataItem)%>" DefaultImage="<%#GetTeamAvatar(Container.DataItem)%>" CssClass="detailTeamAvatar"/><!-- jenom pro potreby nastylovani -->
                    <asp:LinkButton ID="LinkButtonTeamLeader" runat="server" Text='<%#GetTeamWhereUserIsLeader(Container.DataItem)%>' CommandArgument='<%#Eval("TeamID")%>' OnClick="LinkButtonTeamDetail_Click"/>
                    <br />
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="RepeaterTeamMember" runat="server">
            <HeaderTemplate>
                <h2 class="detailHeader">Je členem těchto týmů:</h2>
            </HeaderTemplate>
            <ItemTemplate>
                <div class="detailTeam">
                    <ajaxToolkit:Gravatar ID="ImageAvatar4" runat="server" DefaultImageBehavior="Identicon" Email="<%#GetTeamID(Container.DataItem)%>" DefaultImage="<%#GetTeamAvatar(Container.DataItem)%>" CssClass="detailTeamAvatar"/><!-- jenom pro potreby nastylovani -->
                    <asp:LinkButton ID="LinkButtonTeamMember" runat="server" Text='<%#GetTeamWhereUserIsMember(Container.DataItem)%>' CommandArgument='<%#Eval("TeamID")%>' OnClick="LinkButtonTeamDetail_Click"/>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </asp:Panel>
</asp:Content>
